package com.s53.crm.clue;

import com.s53.crm.entity.Common;
import com.s53.crm.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "clue-service", path = "/users", fallback = ClueServiceApiFallback.class)
public interface ClueServiceApi {
    @PostMapping("/list")
    Common list(@RequestBody User user,
                @RequestParam("current") int current,
                @RequestParam("size") int size);
}
